package cn.wh.basic.util;

import cn.wh.org.service.impl.ShopServiceImpl;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;

public class EmailUtil {
    /**
     * 发送简易邮件的工具类
     * @param message
     */
    public static void getMailSender(SimpleMailMessage message)  {
        JavaMailSender javaMailSender = ApplicationContextUtil.context.getBean(JavaMailSender.class);
        javaMailSender.send(message);

    }


}